<?php
/**
 * 站点模型
 *
 * PHP version 5
 *
 * @package    Ecga
 * @subpackage Models
 * @author     FarmerLi <lixu_01@126.com>
 * @copyright  2010 Xingchangxinda Inc.
 * @version    SVN: $id$
 */

namespace Project\Models\Mapper\Ecga;


use \Framework\Mapper\Models;
/**
 * Projects models
 *
 * @package    Ecga
 * @subpackage Models
 * @author     FarmerLi <lixu_01@126.com>
 * @copyright  2010 Xingchangxinda Inc.
 * @version    Release: 0.1
 */
class Sites extends Models
{
    /**
     * set Projects fields
     *
     * @return void
     */
    protected function setFields()
    {
        $this->charField('ename', 45);
        $this->charField('cname', 45);
        $this->charField('siteUrl', 100);
        $this->positiveIntegerField('projectId', array('null' => true));
        $this->positiveIntegerField('region', array('null' => true));	//FIX
        $this->charField('tag', 255, array('null' => true, 'blank' => true));
    }
    
    /**
     * 设置模型的关系
     *
     * @return void
     */
    protected function setRelations()
    {
        
    }
}